package com.sweetguy.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

import static com.sweetguy.constant.RE.TITLE_RE;
import static com.sweetguy.constant.RE.TITLE_RE_MSG;

@Schema(name = "新闻全查VO")
@Data
public class ArticleSimpleListVO implements Serializable {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "标题")
    @Pattern(regexp = TITLE_RE, message = TITLE_RE_MSG)
    private String title;
}
